/*
 * @(#)SystemException.java
 *
 * Copyright 2012 by ShenY BIS, All rights reserved.
 */

package com.bis.framework.exception;

/**
 * SystemException
 * 
 * @author BIS 2012-12-24
 */
public class SystemException extends RuntimeException
{

    /**
     * Version Id
     */
    private static final long serialVersionUID = 1L;
    /**
     * cause
     */
    private Throwable         cause;

    /**
     * SystemException
     * @param message
     */
    public SystemException(String message)
    {
        super(message);
    }

    /**
     * SystemException
     * @param t
     */
    public SystemException(Throwable t)
    {
        super(t.getMessage());
        this.cause = t;
    }

    /**
     * @return the cause
     */
    public Throwable getCause()
    {
        return cause;
    }

    /**
     * @param cause the cause to set
     */
    public void setCause(Throwable cause)
    {
        this.cause = cause;
    }

}
